package br.here.negocio;

import java.util.Collection;

import br.here.data.ILocalDAO;
import br.here.data.LocalDAOImpl;
import br.here.dominio.Local;
import br.here.exceptions.BDException;

public class LocalCadastro {
	
	private LocalDAOImpl dao;
	
	public LocalCadastro(LocalDAOImpl dao) {
		this.dao = dao;
	}

	public Collection<Local> listAll() throws BDException{
		return dao.listAll();
	}
	
	public void addLocal (Local l) throws BDException{
		dao.addLocal(l);
	}
}
